<template>
  <div class="app">
    <!-- 黑马头条 -->

     <div class="home_container">
        <!-- 二级路由页面 -->
        <router-view></router-view>
    </div>
     <van-tabbar v-model="active" router>
  <van-tabbar-item icon="home-o" to="/layout/home">标签</van-tabbar-item>
  <van-tabbar-item icon="search" to="/layout/user">标签</van-tabbar-item>
</van-tabbar>

  </div>
</template>

<script>
import logoPng from '../src/assets/toutiao_logo.png'
export default {
  data () {
    return {
      active: 0,
      imgObj: logoPng
    }
  }
}
</script>

<style scoped lang="less">
/* 内容底部内边距(把内容往上挤压, 防止内部被底部导航挡住) */
.home_container {
  padding-bottom: 50px;
}
/* 底部导航上边框 */
.van-tabbar {
  border-top: 1px solid #f8f8f8;
}

</style>
